<template>
  <div>
    <!-- 个人详情页 -->
    <div class="headerbox">
      <div class="header">
        <p @click="skip">&lt;</p>
        <p class="iconfont icon-gengduo"></p>
      </div>
    </div>
    <!-- header个人头像头部 -->
    <div class="personlistbox">
      <div class="personlist">
        <div class="up">
          <div class="left">
            <img src="yangchaung/Detimg/头像0.jpg" alt="" />
          </div>
          <div class="right">
            <h5>桃叽桃叽</h5>
            <p>ip属地：陕西省 <span class="iconfont icon-wenhao"></span></p>
          </div>
        </div>
        <div class="mid">本人有一个梦想：逛吃全世界</div>
        <div class="down">
          <div class="left">
            <div class="le">
              <h4>165</h4>
              <p>粉丝</p>
            </div>
            <div class="le">
              <h4>164</h4>
              <p>关注</p>
            </div>
            <div class="le">
              <h4>2674</h4>
              <p>获赞</p>
            </div>
          </div>
          <div class="right">关注</div>
        </div>
      </div>
    </div>
    <!-- <footer>底部开始</footer> -->
    <div class="footerbox">
      <div class="footer">
        <div class="up">
          <p>动态</p>
          <p>笔记</p>
          <p>评价</p>
          <p>更多</p>
        </div>
        <div class="mid">
          <div class="all">
            <p class="downo">全部.1000</p>
            <p class="mid">快食主义</p>
            <p class="upo">西安</p>
            <p class="upp">火锅</p>
            <p class="upp">必吃榜</p>
          </div>
        </div>
        <!-- 图片mock -->
        <div class="down">
          <div class="playpic" v-for="(v, i) in arr" :key="i + 1">
            <div>
              <img :src="v.tyimg" alt />
              <p class="ditu">
                <span class="iconfont icon-ditu"></span>
                {{ v.tytext }}
                <span class="iconfont icon-dianzan">0</span>
              </p>
              <p class="txt">{{ v.typ }}</p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import axios from "axios";
export default {
  data() {
    return {
      arr: [],
    };
  },
  mounted() {
    axios.request("http://localhost:8889/yacUserImg").then((ok) => {
      console.log(ok);
      this.arr = ok.data;
    });
  },
  methods: {
    skip(){
        this.$router.go(-1)
    }
  },
  //   filters: {
  //     xiaoming(arr) {
  //       if (this.arr.length > 4) {
  //         this.arr.substr(0, 4);
  //       } else {
  //         return this.val;
  //       }
  //     },
  //   },
};
</script>

<style lang="scss" scoped>
* {
  margin: 0;
  padding: 0;
}
.headerbox {
  width: 100%;
  .header {
    width: 344px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    font-size: 30px;
    .iconfont {
      font-size: 19px;
      line-height: 40px;
    }
  }
}
.personlistbox {
  width: 100%;
  .personlist {
    width: 344px;
    height: 190px;
    margin: auto;
    border-bottom: 0.3px solid #f5f5f5;
    .up {
      width: 300px;
      height: 83px;
      display: flex;
      img {
        width: 85px;
        height: 83px;
        border-radius: 46px;
      }
      .right {
        margin: 23px 78px 0 6px;
        p {
          font-size: 10px;
        }
        span {
          font-size: 10px;
        }
      }
    }
    .mid {
      font-size: 10px;
      margin-top: 24px;
    }
    .down {
      display: flex;
      justify-content: space-between;
      .left {
        display: flex;
        justify-content: space-around;
        width: 100px;
        height: 32px;
        margin-top: 19px;
        .le {
          text-align: center;
          p {
            font-size: 10px;
            color: #e5e5e5;
          }
        }
      }
      .right {
        width: 203px;
        height: 30px;
        text-align: center;
        line-height: 30px;
        background-color: #fa804f;
        margin-top: 21px;
        color: white;
        border-radius: 18px;
      }
    }
  }
}
.footerbox {
  width: 100%;
  margin-top: 16px;
  .footer {
    width: 344px;
    margin: auto;
    .up {
      width: 191px;
      display: flex;
      justify-content: space-around;
      font-size: 14px;
      font-weight: bold;
    }
  }
}
.mid {
  width: 100%;
  .all {
    margin: auto;
    width: 344px;
    display: flex;
    text-align: center;
    line-height: 27px;
    margin-top: 9px;
    font-size: 9px;
    .upo {
      width: 50px;
      height: 27px;
      border-radius: 10px;
      margin-right: 5px;
      background-color: #f6f6f6;
    }
    .upp {
      width: 50px;
      height: 27px;
      border-radius: 10px;
      background-color: #f6f6f6;
      // color: #f68f7e;
      margin-right: 5px;
    }
    .mid {
      width: 96px;
      height: 27px;
      border-radius: 10px;
      background-color: #f6f6f6;
      margin-right: 5px;
    }
    .downo {
      width: 76px;
      height: 27px;
      border-radius: 10px;
      background-color: #ffeee7;
      color: #f68f7e;
    }
  }
}
.down {
  width: 100%;
  margin-top: 21px;
  flex-wrap: wrap;
  display: flex;
  .playpic {
    margin: auto;
    // width: 344px;
    // display: flex;
    // flex-wrap: wrap;
    // justify-content: space-between;
    div {
      width: 42.467vw;
      height: 64.8vw;
      position: relative;
      .ditu {
        position: absolute;
        top: 40.533vw;
        left: 1.867vw;
        color: #f6f6f6;
        font-size: 10px;
      }
      img {
        width: 41.467vw;
        height: 47.2vw;
      }
      .txt {
        width: 46.667vw;
        margin-bottom: 0.8vw;
        text-align: left;
        // overflow-wrap:warp;
      }
    }
  }
}
</style>